home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1999 January / PC Plus Super CD No55a (PCP-147A-1-99) (Disc 1) (1998).iso / full / cbuilder / DATA.Z / BITSET.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  219 b   |  15 lines

  1. #include <bitset>
  2. #include <iostream.h>
  3.  
  4. using namespace std;
  5.  
  6. int main ()
  7. {
  8.     bitset<8> b;
  9.     b |= 5;
  10. #ifndef RWSTD_NO_NONTYPE_ARGS
  11.     cout << b << endl; // results in 00000101
  12. #endif
  13.     return 0;
  14. }
  15.